package com.godyao.dao.autowire;

import com.godyao.framework.stereotype.Component;
import com.godyao.framework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

@Repository("userDao")
public class UserDao {

    private static Map<String, String> hashMap = new HashMap<>();

    static {
        hashMap.put("10001", "张三，北京，亦庄");
        hashMap.put("10002", "李四，上海，尖沙咀");
        hashMap.put("10003", "王武，香港，铜锣湾");
    }

    public String queryUserName(String uId) {
        return hashMap.get(uId);
    }
}
